<?php
// 处理引号，HTML标签引起的输入框显示错误，过滤字符型变量
$process_include    = array('username', 'realname');
string_pre_process($record, $process_include);



// 取得返回字符串
$back_url   = strcode(getcookie('back_url'), 'DECODE');
if($back_url == '') $back_url   = $mod_url['li'];

require($abs_admin_cppath . '/header.php');
?>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/Validator.js"></SCRIPT>


		<div class="datacontainer2" style="width:500px;">
<div class="header">
	修改密码
</div>
<table BORDER="0" cellpadding="0" cellspacing="0" width="100%" class="list_table">
<form action="<?php echo $mod_url['save']; ?>" method="post" name="item_data" onsubmit="return Validator.Validate(this,3)">
<TR>
	<TD width="120" align="right" class="caption">登录用户名：</TD>
	<TD class="cell">
		<?php echo $record['username']; ?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">真实姓名：</TD>
	<TD class="cell">
		<?php echo $record['realname']; ?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">旧密码：</TD>
	<TD class="cell">
		<input type="password" name="admin[oldpassword]" id='oldpassword' value="" class="text"
		dataType="Limit" min="3" max="30" msg="旧密码必须填写！">
		<span class="mustfill">*</span>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">新密码：</TD>
	<TD class="cell">
		<input type="password" name="admin[password]" id='password' value="" class="text"
		dataType="Limit" min="3" max="30" msg="登录密码必须填写且必须符合上述规则">
		<span class="mustfill">*</span>
		<div class="hint">密码可由除半角字符“'”和“"”以外的可打印字符组成(区分大小写)，长度为6～30个字符。 <br>修改用户信息时如果不填写本项则不修改用户登录密码。</div>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">确认新密码：</TD>
	<TD class="cell"><input type="password" name="admin[confirmpass]" value="" class="text"
		dataType="Repeat" to="password" msg="两次输入的密码不一致">
		<span class="mustfill">*</span>
		<div class="hint">请确认一次您刚才输入的密码使之同“<B>登录密码</B>”项保持一致。</div>
	</TD>
</TR>
<TR>
	<TD class="submit" colspan="2">
		<input type="submit" value=" 保存 " class="btn">
		<input type="reset" value=" 重置 " class="btn">
		<input type="button" value=" 返回 " class="btn" onclick="location.href='<?php echo $back_url; ?>'">
		<input type="hidden" name="back_url" value="<?php echo $back_url; ?>">
		<input type="hidden" name="admin[uid]" value="<?php echo $record['uid']; ?>">
		<input type="hidden" name="save" value="<?php echo $save_flag; ?>">
	</TD>
</TR>
</form>
</TABLE>

		</div>


<?php
require($abs_admin_cppath . '/footer.php');
?>